import request from '@/utils/request'

// 查询学历列表
export function listEducation(query) {
  return request({
    url: '/sl/education/list',
    method: 'get',
    params: query
  })
}

// 查询学历详细
export function getEducation(educationId) {
  return request({
    url: '/sl/education/' + educationId,
    method: 'get'
  })
}

// 新增学历
export function addEducation(data) {
  return request({
    url: '/sl/education',
    method: 'post',
    data: data
  })
}

// 修改学历
export function updateEducation(data) {
  return request({
    url: '/sl/education',
    method: 'put',
    data: data
  })
}

// 删除学历
export function delEducation(educationId) {
  return request({
    url: '/sl/education/' + educationId,
    method: 'delete'
  })
}
